package com.zdkj.subway.rca.feign;

import com.zdkj.common.core.constant.SecurityConstants;
import com.zdkj.common.core.constant.ServiceNameConstants;
import com.zdkj.common.core.util.R;
import com.zdkj.subway.rca.entity.SwAuStationTicketDifferenceDto;
import com.zdkj.subway.rca.entity.SwMessage;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

import java.util.List;

/**
 * 收入审核模块接口类
 * @author Magic
 *
 */
@FeignClient(contextId = "subwayCheckService", value = ServiceNameConstants.SUBWAY_STM_SERVICE)
public interface SubwayCheckService {
    /**
     * 生成车站票款差异审核数据
     * @param swAuStationTicketDifferenceDtos
     * @param from
     * @return
     */
    @PostMapping("/check/innerSaveBatch")
    R innerSaveBatch(@RequestBody List<SwAuStationTicketDifferenceDto> swAuStationTicketDifferenceDtos,
                     @RequestHeader(SecurityConstants.FROM) String from);
}
